package com.example.capsule_chat0322.global;



import com.example.capsule_chat0322.bean.GlobalRoomBean;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author zhuzhiming
 * @Date 2022/5/1 0:02
 */
public class GlobalChatRoomMap {

    public static ConcurrentHashMap<String, GlobalRoomBean> roomMap = new ConcurrentHashMap<>();

    public static void putRoomInfo(String room, GlobalRoomBean globalRoomBean) {
        roomMap.put(room, globalRoomBean);
    }

    public static GlobalRoomBean getRoomInfo(String room) {
        return roomMap.get(room);
    }


}
